package partThree.homeWork.Stu;

/**
 * 查找学生信息的类
 */
public class SearchStu {
    public static void searchStu(){
        System.out.println("请通过学号来查找学生信息！");
        int id = StuTest.sc.nextInt();
        for (Student student: StuTest.stuTestList){
            if (student.getId() == id){
                System.out.println("查找到的学生信息是："+student);
            }
        }
    }
}
